<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>旭文科技企业站管理平台</title>
        <script type="text/javascript" src="/media/js/jquery-1.6.2.js"></script>
        <script type="text/javascript" src="/media/js/ui/ui.core.js"></script>
        <script type="text/javascript" src="/media/js/ui/ui.widget.js"></script>
        <script type="text/javascript" src="/media/js/ui/ui.mouse.js"></script>
        <script type="text/javascript" src="/media/js/superfish.js"></script>
        <script type="text/javascript" src="/media/js/live_search.js"></script>
        <script type="text/javascript" src="/media/js/tooltip.js"></script>
        <script type="text/javascript" src="/media/js/cookie.js"></script>
        <script type="text/javascript" src="/media/js/ui/ui.sortable.js"></script>
        <script type="text/javascript" src="/media/js/ui/ui.draggable.js"></script>
        <script type="text/javascript" src="/media/js/ui/ui.resizable.js"></script>
        <script type="text/javascript" src="/media/js/ui/ui.position.js"></script>
        <script type="text/javascript" src="/media/js/ui/ui.button.js"></script>
        <script type="text/javascript" src="/media/js/ui/ui.dialog.js"></script>
        <script type="text/javascript" src="/media/js/custom.js"></script>
        <script type="text/javascript" src="/media/js/fg.menu.js"></script>
        <link href="/media/css/ui/ui.base.css" rel="stylesheet" media="all" />
        <link href="/media/css/fg.menu.css" rel="stylesheet" media="all" />
        <link href="/media/css/themes/black_rose/ui.css" rel="stylesheet" title="style" media="all" />
        <!--[if IE 6]>
        <link href="/media/css/ie6.css" rel="stylesheet" media="all" />
        <script src="/media/js/pngfix.js"></script>
        <script>
          /* Fix IE6 Transparent PNG */
          DD_belatedPNG.fix('.logo, .other ul#dashboard-buttons li a');

        </script>
        <![endif]-->
        <!--[if IE 7]>
        <link href="/media/css/ie7.css.html" rel="stylesheet" media="all" />
        <![endif]-->
    </head>
    <body id="sidebar-left">
        <div id="page_wrapper">
            <div id="page-header">
                <div id="page-header-wrapper">
                    <div id="top">
                        <a href="dashboard.php.html" class="logo" title="旭文科技企业站管理平台">旭文科技企业站管理平台</a>
                        <div class="welcome">


                            <?php
                            $user = User::instance()->logged_in();
                            if ($user)
                            {
                                ?>
                                <span class="note">Welcome, <a href="#" title="Welcome, Horia Simon"><?php echo $user['username'] ?></a></span>
                                <a class="btn ui-state-default ui-corner-all" href="<?php echo URL::base() . 'admin/user/edit/' . $user['id_user'] ?>">
                                    <span class="ui-icon ui-icon-wrench"></span>
                                    设置账号
                                </a>
                                <a class="btn ui-state-default ui-corner-all" href="<?php echo URL::base() . 'admin/user/logout/' ?>">
                                    <span class="ui-icon ui-icon-power"></span>
                                    退出
                                </a>	
                                <?php
                            }
                            else
                            {
                                echo "游客";
                            }
                            ?>


                        </div>
                    </div>
                    <ul id="navigation">
                        <li>
                            <a href="<?php echo URL::base() . 'admin/config/list' ?>" class="sf-with-ul">控制面板</a>
                            <ul>
                                <li><a href="<?php echo URL::base() . 'admin/config/list'; ?>">全局参数</a></li>
                                <li><a href="<?php echo URL::base() . 'admin/user/list'; ?>">管理员管理</a>
                                    <ul>
                                        <li><a href="<?php echo URL::base() . 'admin/user/add' ?>">添加管理员</a></li>
                                    </ul>
                                </li>
                                <li>
                                    <a href="<?php echo URL::base() . 'admin/navigator/index' ?>">自定义导航</a>
                                    <ul>
                                        <li><a href="<?php echo URL::base() . 'admin/navigator/index' ?>">导航管理</a></li>
                                        <li><a href="<?php echo URL::base() . 'admin/navigator/add' ?>"><b>添加导航</b></a></li>
                                    </ul>
                                </li>

                                <!--             <li>
                                                 <a href="tables.php.html">Tables</a>
                                                 <ul>
                                                     <li><a href="tables.php.html">Sortable Tables</a></li>
                                                     <li><a href="flexigrid.php.html"><b>FlexiGrid</b></a></li>
                                                 </ul>
                                             </li>
                                             <li>
                                                 <a href="#">Widgets</a>
                                                 <ul>
                                                     <li><a href="accordion.php.html">Accordion</a></li>
                                                     <li><a href="flexigrid.php.html"><b>FlexiGrid</b></a></li>
                                                     <li><a href="editinplace.php.html"><b>Edit in Place</b></a></li>
                                                     <li><a href="tinymce.php.html"><b>WYSIWYG Editor</b></a></li>
                                                     <li><a href="charts.php.html"><b>Charts</b></a></li>
                                                     <li><a href="tabs.php.html">Tabs</a></li>
                                                     <li><a href="slider.php.html">Slider</a></li>
                                                     <li><a href="datepicker.php.html">Datepicker</a></li>
                                                     <li><a href="progress.php.html">Progress Bar</a></li>
                                                     <li><a href="dialog.php.html">Dialogs and Modals</a></li>
                                                     <li><a href="overlays.php.html">Overlays</a></li>
                                                     <li><a href="photo_manager.php.html">Photo Manager</a></li>
                                                     <li><a href="file_browser.php.html">File Browser</a></li>
                                                 </ul>
                                             </li>
                                             <li><a href="msg.php.html">Response Messages</a></li>
                                             <li><a href="icons.php.html">Icons</a></li>
                                             <li><a href="index.php.html">Login Page</a></li>
                                             <li><a href="icons.php.html">Buttons and Elements</a></li>-->
                            </ul>
                        </li>
                        <li ><a href="<?php echo URL::base() . 'admin/news/list'; ?>" class="sf-with-ul"> &nbsp;&nbsp;内容管理 &nbsp;</a>

                            <ul>
                                <li>
                                    <a href="<?php echo URL::base() . 'admin/news/list'; ?>" class="sf-with-ul">新闻管理</a>
                                    <ul>
                                        <li>
                                            <a  href="<?php echo URL::base() . 'admin/news/list'; ?>" title="新闻列表">新闻列表</a>
                                        </li>
                                        <li>
                                            <a  href="<?php echo URL::base() . 'admin/news/add'; ?>" title="添加新闻">添加新闻</a>
                                        </li>
                                        <li>
                                            <a  href="<?php echo URL::base() . 'admin/newscategory/list'; ?>" title="分类管理">分类管理</a>
                                        </li>
                                        <li>
                                            <a href="<?php echo URL::base() . 'admin/news/list'; ?>" title="评论管理">评论管理</a>
                                        </li>
                                    </ul>
                                </li>
                                <li>
                                    <a href="<?php echo URL::base() . 'admin/news/list'; ?>" class="sf-with-ul">单页管理</a>

                                    <ul>
                                        <li>
                                            <a  href="<?php echo URL::base() . 'admin/news/list'; ?>" title="单页列表">单页列表</a>
                                        </li>
                                        <li>
                                            <a  href="<?php echo URL::base() . 'admin/news/add'; ?>" title="添加单页">添加单页</a>
                                        </li>
                                    </ul>
                                </li>
                            </ul>

                        </li>
                        <li>
                            <a href="#">模块管理</a>
                            <ul>
                                <li><a href="<?php echo URL::base() . 'admin/adcategory/list' ?>">广告管理</a></li>
                                <li><a href="#">友情链接</a></li>
                                <li><a href="#">投票模块</a></li>
                            </ul>
                        </li>
                        <!--                        <li>
                                                    <a href="#" class="sf-with-ul">Unlimited Levels</a>
                                                    <ul>
                                                        <li>
                                                            <a href="#" class="sf-with-ul">Menu item 1</a>
                                                            <ul>
                                                                <li><a href="#">Subitem 1</a></li>
                                                                <li><a href="#">Subitem 2</a></li>
                                                            </ul>
                                                        </li>
                                                        <li>
                                                            <a href="#">Menu item 2</a>
                                                        </li>
                                                        <li>
                                                            <a href="#">Menu item 3</a>
                                                        </li>
                                                        <li>
                                                            <a href="#" class="sf-with-ul">Menu item 4</a>
                                                            <ul>
                                                                <li><a href="#">Subitem 1</a></li>
                                                                <li>
                                                                    <a href="#" class="sf-with-ul">Subitem 2</a>
                                                                    <ul>
                                                                        <li><a href="#">Subitem 1</a></li>
                                                                        <li>
                                                                            <a href="#" class="sf-with-ul">Subitem 2</a>
                                                                            <ul>
                                                                                <li><a href="#">Subitem 1</a></li>
                                                                                <li>
                                                                                    <a href="#">Subitem 2</a>
                                                                                </li>
                                                                            </ul>
                                                                        </li>
                                                                    </ul>
                                                                </li>
                                                            </ul>
                                                        </li>
                                                        <li>
                                                            <a href="#" class="sf-with-ul">Menu item 5</a>
                                                            <ul>
                                                                <li><a href="#">Subitem 1</a></li>
                                                                <li><a href="#">Subitem 2</a></li>
                                                            </ul>
                                                        </li>
                                                        <li>
                                                            <a href="#">Menu item 6</a>
                                                        </li>
                                                        <li>
                                                            <a href="#">Menu item 7</a>
                                                        </li>
                                                    </ul>
                                                </li>
                                                <li><a href="gallery.php.html">Photo Gallery</a></li>
                                                <li>
                                                    <a href="#" class="sf-with-ul">Layout Options</a>
                                                    <ul>
                                                        <li>
                                                            <a href="three-columns-layout.php.html">Three columns</a>
                                                        </li>
                                                        <li>
                                                            <a href="two-column-layout.php.html">Two columns</a>
                                                        </li>
                                                        <li>
                                                            <a href="no-rounded.php.html">No rounded corners</a>
                                                        </li>
                                                        <li>
                                                            <a href="content_boxes.php.html">Available content boxes</a>
                                                        </li>
                                                    </ul>
                                                </li>
                                                <li>
                                                    <a href="#" class="sf-with-ul">Theme Options</a>
                                                    <ul>
                                                        <li>
                                                            <a href="page_left_sidebar.php.html">Page with left sidebar</a>
                                                        </li>
                                                        <li>
                                                            <a href="page_dynamic_sidebar.php.html">Page with dynamic sidebar</a>
                                                        </li>
                                                        <li>
                                                            <a href="#">Avaiable Themes</a>
                                                            <ul id="style-switcher">
                                                                <li>
                                                                    <a class="set_theme" id="black_rose" href="#" title="Black Rose Theme">Black Rose Theme</a>
                                                                </li>
                                                                <li>
                                                                    <a class="set_theme" id="gray_standard" href="#" title="Gray Standard Theme">Gray Standard Theme</a>
                                                                </li>
                                                                <li>
                                                                    <a class="set_theme" id="gray_lightness" href="#" title="Gray Lightness Theme">Gray Lightness Theme</a>
                                                                </li>
                                                                <li>
                                                                    <a class="set_theme" id="apple_pie" href="#" title="Apple Pie Theme">Apple Pie Theme</a>
                                                                </li>
                                                                <li>
                                                                    <a class="set_theme" id="blueberry" href="#" title="Blueberry Theme">Blueberry Theme</a>
                                                                </li>
                                                            </ul>
                                                        </li>
                                                        <li>
                                                            <a href="#"><i>Dummy Link</i></a>
                                                        </li>
                                                    </ul>
                                                </li>
                                                <li>
                                                    <a href="#" class="sf-with-ul">Widgets</a>
                                                    <ul>
                                                        <li><a href="accordion.php.html">Accordion</a></li>
                                                        <li><a href="flexigrid.php.html"><b>FlexiGrid</b></a></li>
                                                        <li><a href="editinplace.php.html"><b>Edit in Place</b></a></li>
                                                        <li><a href="tinymce.php.html"><b>WYSIWYG Editor</b></a></li>
                                                        <li><a href="charts.php.html"><b>Charts</b></a></li>
                                                        <li><a href="tabs.php.html">Tabs</a></li>
                                                        <li><a href="slider.php.html">Slider</a></li>
                                                        <li><a href="datepicker.php.html">Datepicker</a></li>
                                                        <li><a href="progress.php.html">Progress Bar</a></li>
                                                        <li><a href="dialog.php.html">Dialogs and Modals</a></li>
                                                        <li><a href="overlays.php.html">Overlays</a></li>
                                                        <li><a href="photo_manager.php.html">Photo Manager</a></li>
                                                        <li><a href="file_browser.php.html">File Browser</a></li>
                                                    </ul>
                                                </li>-->
                    </ul>
                    <div id="search-bar">
                        <form method="post" action="http://www.google.com/">
                            <input type="text" name="q" value="live search demo" />
                        </form>
                    </div>
                </div>
            </div>

            <?php echo $content; ?>
        </div>
        <div class="clear"></div>
        <div id="footer">
            <!--            <a href="#" title="Home">Home</a> | 
                        <a href="#" title="Register">Register</a> | 
                        <a href="#" title="Members Login">Members Login</a> | 
                        <a href="#" title="About us">About us</a> | 
                        <a href="#" title="Example link">Example link</a>-->
        </div>
        <div id="copyright">
            Powered by <a href="http://www.xuwentec.com/" title="Powerful by xuwentec">旭文科技网络公司</a>
        </div>
    </body>
</html>
